package com.mryt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.mryt.service.CodeGenService;
import com.mryt.util.SpringBeanUtil;

@SpringBootApplication
public class AppBootstrap {

    public static void main(String[] args) throws Exception {
        SpringBeanUtil.context = SpringApplication.run(AppBootstrap.class, args);
        CodeGenService codeGenService = SpringBeanUtil.getBean(CodeGenService.class);

        codeGenService.genCode();

    }
}
